.include <src.opts.mk>

MANGROUPS=	MAN

#MISSING: dump.5 plot.5
MAN=	a.out.5 \
	${_boot.config.5} \
	core.5 \
	dir.5 \
	disktab.5 \
	elf.5 \
	ethers.5 \
	eui64.5 \
	fbtab.5 \
	forward.5 \
	group.5 \
	hosts.5 \
	hosts.equiv.5 \
	intro.5 \
	libmap.conf.5 \
	link.5 \
	mailer.conf.5 \
	make.conf.5 \
	motd.5 \
	mount.conf.5 \
	networks.5 \
	nsswitch.conf.5 \
	os-release.5 \
	pbm.5 \
	phones.5 \
	portindex.5 \
	protocols.5 \
	quota.user.5 \
	rctl.conf.5 \
	regdomain.5 \
	remote.5 \
	resolver.5 \
	services.5 \
	shells.5 \
	src.conf.5 \
	stab.5 \
	style.Makefile.5 \
	style.mdoc.5 \
	sysctl.conf.5 \

.if ${MK_BLUETOOTH} != "no"
MAN+=	bluetooth.device.conf.5 \
	bluetooth.hosts.5 \
	bluetooth.protocols.5
.endif

.if ${MK_FREEBSD_UPDATE} != "no"
MAN+=	freebsd-update.conf.5
.endif

.if ${MK_HESIOD} != "no"
MAN+=	hesiod.conf.5
.endif

MLINKS=	dir.5 dirent.5
MLINKS+=fs.5 inode.5
MLINKS+=hosts.equiv.5 rhosts.5
MLINKS+=portindex.5 INDEX.5
MLINKS+=quota.user.5 quota.group.5
MLINKS+=resolver.5 resolv.conf.5
MLINKS+=src.conf.5 src-env.conf.5

MANGROUPS+=	ACCT
ACCT=		acct.5
ACCTPACKAGE=	acct

MANGROUPS+=	BOOTLOADER
BOOTLOADER=	device.hints.5
BOOTLOADERPACKAGE=bootloader

.if ${MK_TOOLCHAIN} != "no"
MANGROUPS+=	TOOLCHAIN
TOOLCHAIN=	ar.5
TOOLCHAINPACKAGE=toolchain
.endif

MANGROUPS+=	LP
LP=		hosts.lpd.5
LPPACKAGE=	lp

MANGROUPS+=	PERIODIC
PERIODIC=	periodic.conf.5
PERIODICPACKAGE=periodic

.if ${MK_PF} != "no"
MANGROUPS+=	PF
PF=		pf.conf.5 \
		pf.os.5
PFPACKAGE=	pf
.endif

MANGROUPS+=	RC
RC=		rc.conf.5
RCLINKS=	rc.conf.5 rc.conf.local.5
RCPACKAGE=	rc

MANGROUPS+=	RUNTIME
RUNTIME=	devfs.conf.5 \
		devfs.rules.5 \
		fstab.5 \
		passwd.5
RUNTIMELINKS=	passwd.5 master.passwd.5
RUNTIMELINKS+=	passwd.5 pwd.db.5
RUNTIMELINKS+=	passwd.5 spwd.db.5
RUNTIMEPACKAGE=	runtime

MANGROUPS+=	SMB
SMB=		nsmb.conf.5
SMBPACKAGE=	smbutils

MANGROUPS+=	SSH
SSH=		moduli.5
SSHPACKAGE=	ssh

MANGROUPS+=	UFS
UFS=		fs.5
UFSPACKAGE=	ufs

# This makes more sense for amd64 and i386 but
# we decide to install all manpages in all architectures
_boot.config.5=	boot.config.5

.include <bsd.prog.mk>
